﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/1/18 15:06:06
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_SafetyKnowledge", new string[] { "Sk_ID" })]
    public class ScmSafetyknowledgeInfo : BaseEntity
    {
        public ScmSafetyknowledgeInfo()
        {

        }
        
        
        private string _skId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Sk_ID", System.Data.DbType.String)]
        public string Sk_ID
        {
            get {return _skId;}
            set
            {
                if (object.Equals(this._skId, value) != true)
                {
                    this._skId = value;
                    this.RaisePropertyChanged("Sk_ID");
                }
            }
        }
        
        
        private string _scdId;
        /// <summary>
        /// 安全知识类型主键
        /// </summary>
        [ColumnMap("Scd_ID", System.Data.DbType.String)]
        public string Scd_ID
        {
            get {return _scdId;}
            set
            {
                if (object.Equals(this._scdId, value) != true)
                {
                    this._scdId = value;
                    this.RaisePropertyChanged("Scd_ID");
                }
            }
        }
        
        
        private int _skPublishorgid;
        /// <summary>
        /// 发布机构ID
        /// </summary>
        [ColumnMap("Sk_PublishOrgID", System.Data.DbType.Int32)]
        public int Sk_PublishOrgID
        {
            get {return _skPublishorgid;}
            set
            {
                if (object.Equals(this._skPublishorgid, value) != true)
                {
                    this._skPublishorgid = value;
                    this.RaisePropertyChanged("Sk_PublishOrgID");
                }
            }
        }
        
        
        private string _skPublishorgname;
        /// <summary>
        /// 发布机构名称
        /// </summary>
        [ColumnMap("Sk_PublishOrgName", System.Data.DbType.String)]
        public string Sk_PublishOrgName
        {
            get {return _skPublishorgname;}
            set
            {
                if (object.Equals(this._skPublishorgname, value) != true)
                {
                    this._skPublishorgname = value;
                    this.RaisePropertyChanged("Sk_PublishOrgName");
                }
            }
        }
        
        
        private string _skTitle;
        /// <summary>
        /// 文件标题（长度200）
        /// </summary>
        [ColumnMap("Sk_Title", System.Data.DbType.String)]
        public string Sk_Title
        {
            get {return _skTitle;}
            set
            {
                if (object.Equals(this._skTitle, value) != true)
                {
                    this._skTitle = value;
                    this.RaisePropertyChanged("Sk_Title");
                }
            }
        }
        
        
        private string _skContent;
        /// <summary>
        /// 文件内容
        /// </summary>
        [ColumnMap("Sk_Content", System.Data.DbType.String)]
        public string Sk_Content
        {
            get {return _skContent;}
            set
            {
                if (object.Equals(this._skContent, value) != true)
                {
                    this._skContent = value;
                    this.RaisePropertyChanged("Sk_Content");
                }
            }
        }
        
        
        private int _skCreateuserid;
        /// <summary>
        /// 创建人ID
        /// </summary>
        [ColumnMap("Sk_CreateUserID", System.Data.DbType.Int32)]
        public int Sk_CreateUserID
        {
            get {return _skCreateuserid;}
            set
            {
                if (object.Equals(this._skCreateuserid, value) != true)
                {
                    this._skCreateuserid = value;
                    this.RaisePropertyChanged("Sk_CreateUserID");
                }
            }
        }
        
        
        private string _skCreatename;
        /// <summary>
        /// 创建人名称
        /// </summary>
        [ColumnMap("Sk_CreateName", System.Data.DbType.String)]
        public string Sk_CreateName
        {
            get {return _skCreatename;}
            set
            {
                if (object.Equals(this._skCreatename, value) != true)
                {
                    this._skCreatename = value;
                    this.RaisePropertyChanged("Sk_CreateName");
                }
            }
        }
        
        
        private DateTime _skCreatetime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [ColumnMap("Sk_CreateTime", System.Data.DbType.DateTime)]
        public DateTime Sk_CreateTime
        {
            get {return _skCreatetime;}
            set
            {
                if (object.Equals(this._skCreatetime, value) != true)
                {
                    this._skCreatetime = value;
                    this.RaisePropertyChanged("Sk_CreateTime");
                }
            }
        }
        
        
        private int _skUpdateuserid;
        /// <summary>
        /// 修改人ID
        /// </summary>
        [ColumnMap("Sk_UpdateUserID", System.Data.DbType.Int32)]
        public int Sk_UpdateUserID
        {
            get {return _skUpdateuserid;}
            set
            {
                if (object.Equals(this._skUpdateuserid, value) != true)
                {
                    this._skUpdateuserid = value;
                    this.RaisePropertyChanged("Sk_UpdateUserID");
                }
            }
        }
        
        
        private string _skModifyname;
        /// <summary>
        /// 修改人名称
        /// </summary>
        [ColumnMap("Sk_ModifyName", System.Data.DbType.String)]
        public string Sk_ModifyName
        {
            get {return _skModifyname;}
            set
            {
                if (object.Equals(this._skModifyname, value) != true)
                {
                    this._skModifyname = value;
                    this.RaisePropertyChanged("Sk_ModifyName");
                }
            }
        }
        
        
        private DateTime _skUpdatetime;
        /// <summary>
        /// 修改时间
        /// </summary>
        [ColumnMap("Sk_UpdateTime", System.Data.DbType.DateTime)]
        public DateTime Sk_UpdateTime
        {
            get {return _skUpdatetime;}
            set
            {
                if (object.Equals(this._skUpdatetime, value) != true)
                {
                    this._skUpdatetime = value;
                    this.RaisePropertyChanged("Sk_UpdateTime");
                }
            }
        }
        
        
        private byte[] _skTimestamp;
        /// <summary>
        /// 时间戳
        /// </summary>
        [ColumnMap("Sk_TimeStamp", System.Data.DbType.Binary)]
        public byte[] Sk_TimeStamp
        {
            get {return _skTimestamp;}
            set
            {
                if (object.Equals(this._skTimestamp, value) != true)
                {
                    this._skTimestamp = value;
                    this.RaisePropertyChanged("Sk_TimeStamp");
                }
            }
        }
        
        
    }
}


